/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: user
 * Date: 2024-04-06
 * Time: 16:07
 */
public class Test {
    public static void main(String[] args) {
        MyBinaryTree mb = new MyBinaryTree();
       MyBinaryTree.TreeNode root =  mb.createBinaryTree();
//       mb.preOrder(root);
//        System.out.println();
//        mb.inOrder(root);
//        System.out.println();
//        mb.postOrder(root);
        System.out.println(mb.size(root));
        System.out.println(mb.getLeafNodeCount(root));
        System.out.println(mb.getKLevelNodeCount(root,4));
        System.out.println(mb.getHeight(root));
        MyBinaryTree.TreeNode ret = (mb.find(root,'E'));
        System.out.println(ret.val);
        mb.levelOrder(root);
    }
}
